package com.example.port.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

@Configuration
public class PasswordEncoderConfig {
    
    @Bean
    public PasswordEncoder passwordEncoder() {
        // 使用NoOpPasswordEncoder来处理明文密码（不推荐在生产环境中使用）
        return NoOpPasswordEncoder.getInstance();
    }
} 